/*
 * @(#)GSOrderSubmitDetailAction.java
 * 
 * Project: GS
 * 
 * Modify Information:
 * =============================================================================
 * Author           Date      Description 
 * ------------ ------------- ----------------------------------------------- 
 * Jenny Li         2006-2-15 新增
 * 
 * Copyright Notice:
 * =============================================================================
 * Copyright (c) 2001-2006 Beijing HiTRUST Technology Co., Ltd. 1808 Room,
 * Science & Technology Building, No. 9 South Street, Zhong Guan Cun, Haidian
 * District, Beijing ,100081, China All rights reserved.
 * 
 * This software is the confidential and proprietary information of Beijing
 * HiTRUST Technology Co., Ltd. ("Confidential Information"). You shall not
 * disclose such Confidential Information and shall use it only in accordance
 * with the terms of the license agreement you entered into with HiTRUST.
 * 
 * Warning:
 * =============================================================================
 * 
 */
package com.hitrust.gs.action;

import java.util.ArrayList;

import com.hitrust.gs.bean.GSOrderBean;
import com.hitrust.gs.business.GSOrderProcessor;
import com.hitrust.gs.dao.GSOrderDAO;
import com.hitrust.gs.lib.GSBaseConstants;
import com.hitrust.gs.service.GSBaseAction;
import com.hitrust.gs.service.GSBaseForm;

/**
 * 
 */
public class GSOrderSubmitDetailAction extends GSBaseAction {

    /*
     * (non-Javadoc)
     * 
     * @see com.hitrust.gs.service.GSBaseAction#execute(com.hitrust.gs.service.GSBaseForm)
     */
    public String execute(GSBaseForm aForm) throws Exception {
        //取得参数订单编号
        String tOrderId = aForm.getRequest().getParameter("orderId");
        try {
            GSOrderProcessor tGSOrderProc = new GSOrderProcessor();
            //由订单编号查询订单及所订产品明细
            ArrayList tList = tGSOrderProc.getOrderSubmitDetailAddDwring(tOrderId);
            aForm.getRequest().setAttribute("ordermanufacture", tList);

            GSOrderDAO tOrderDAO = new GSOrderDAO();
            //由订单编号查询订单信息
            GSOrderBean tBean = tOrderDAO.getOrderByTempID(tOrderId);
            aForm.getRequest().setAttribute("orderbean", tBean);
        }
        catch (Exception e) {
            aForm.getRequest().setAttribute("action","A100301.do");
            throw e;
        }
        return GSBaseConstants.FORWARD_SUCCESS;
    }

}
